package com.lemon.controller.accountControl.comm;

/**
 * 枚举
 *
 * @author user22
 */
public enum ResponseCode {

    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    RESULTCODE_ERROR(9999, "系统异常"),
    RESULTCODE_NO_PERMISSION(1001, "无操作权限"),
    RESULTCODE_LOGIN_ERROR(1002, "帐号验证失败"),
    RESULTCODE_RAND_ERROR(1003, "验证码错误"),
    RESULTCODE_NOT_LOGIN(1004, "用户未登录"),
    RESULTCODE_PARAM_ERROR(1005, "参数格式错误"),
    RESULTCODE_PARAM_LOST(1006, "参数缺失"),
    RESULTCODE_NOROLE(1007, "角色未分配"),
    RESULTCODE_EXIST(1008, "对象已存在"),
    RESULTCODE_NOT_EXIST(1009, "对象不存在"),
    RESULTCODE_FAIL(1010, "操作失败"),
    RESULTCODE_OBJECR_NUMBER(1011, "对象数量不足"),
    RESULTCODE_WAIT_BUYER_PAY(1012, "等待付款"),
    RESULTCODE_SIGNATURE_ERROR(1013, "签名错误"),
    RESULTCODE_NO_RAND(1014, "请获取验证码"),
    RESULTCODE_PHONE_ERROR(1015, "手机号错误"),
    RESULTCODE_RAND_COUNT_ERROR(1016, "获取短信频繁，请稍后再试"),
    RESULTCODE_WECHAT_RESOLVE_ERROR(1017, "获取用户微信信息失败"),
    RESULTCODE_WECHAT_LOSS_ERROR(1018, "微信解析密钥缺失"),
    RESULTCODE_QRCODE_ERROR(1019, "二维码生成错误"),
    RESULTCODE_TOKEN_LOST(1020, "token缺失"),
    RESULTCODE_TOKEN_ERROR(1021, "token错误"),
    RESULTCODE_FILE_ERROR(1999, "文件错误"),
    RESULTCODE_self_ERROR(1022, "本人领取"),
    RESULTCODE_REGISTER_EXIST(1023, "已注册"),
    RESULTCODE_BUSY(1024, "操作频繁"),
    RESULTCODE_HAVE_BUYER_PAY(1025, "已付款"),
    RESULTCODE_HAVE_BUY(1026, "已购买"),
    RESULTCODE_HAVE_RECEIVE(1027, "已领取"),
    RESULTCODE_HAVE_EXPIRE(1028, "已过期"),
    RESULTCODE_RECORD_NOT_EXIST(1029, "非法参数，记录不存在"),
    RESULTCODE_RECORD_SUCCESS(1030, "已助力成功"),
    RESULTCODE_HAVE_RECEIVE_OTHER(1031, "已领取其他"),
    RESULTCODE_REQUEST_ERROR(2000,"非法请求");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
